package com.example.system.domain.sysUser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;


@Getter
@Setter
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {
    //使用雪花算法生成
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "USER_ID",type = IdType.ASSIGN_ID)
    private Long userId;
    private String userAccount;
    private String password;
    private String nickName;

}
